// Created by Joe on 2017/7/21.

app.service(
    'PeopleLivelihoodService',
    [
        'RequestProxyService',
        function (RequestProxyService) {
            return {
                getListInfo: function (num, page) {
                    return RequestProxyService.requestProxy('/app/getHotLineNotice', {},
                        {num: num, page: page},
                        function (resolve, info) {
                            resolve(info.result[0] || {list: []});
                        })();
                },
                getDetailInfo: function (id) {
                    return RequestProxyService.requestProxy('/app/getHotLineDetail', {},
                        {id: id},
                        function (resolve, info) {
                            resolve(info.result[0] || {});
                        })();
                }
            };
        }
    ]
);